﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Project.Core;

namespace TLS
{
    public class SpriteFactory : iSpriteFactory
    {
        private Game1 game;

        public SpriteFactory(Game1 game)
        {
            this.game = game;
        }

        public Sprite obtenerSprite(String nombreSprite)
        {
            Sprite objSprite = null;
            
            switch(nombreSprite)
            {
                case "caminante":
                    objSprite = new Caminante(game);
                    break;
                case "boss1":
                    objSprite = new Boss1(game);
                    break;
                case "invisible":
                    objSprite = new Bloque(game);
                    break;
                case "boss2":
                    objSprite = new Boss2(game);
                    break;
            }
            return objSprite;
        }
    }
}
